import request from '@/utils/request'

// 查询人员考勤列表
export function listCheckWork(query) {
  return request({
    url: '/report/checkWork/list',
    method: 'get',
    params: query
  })
}

// 查询人员考勤详细
export function getCheckWork(checkWorkId) {
  return request({
    url: '/report/checkWork/' + checkWorkId,
    method: 'get'
  })
}

// 新增人员考勤
export function addCheckWork(data) {
  return request({
    url: '/report/checkWork',
    method: 'post',
    data: data
  })
}

// 修改人员考勤
export function updateCheckWork(data) {
  return request({
    url: '/report/checkWork',
    method: 'put',
    data: data
  })
}

// 删除人员考勤
export function delCheckWork(checkWorkId) {
  return request({
    url: '/report/checkWork/' + checkWorkId,
    method: 'delete'
  })
}
